# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=perl-b-keywords
pkgver=1.27
pkgrel=0
pkgdesc="Lists of reserved barewords and symbol names"
url="https://metacpan.org/pod/B::Keywords"
arch="noarch"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl"
checkdepends="perl-dev perl-test-pod"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RU/RURBAN/B-Keywords-$pkgver.tar.gz"
builddir="$srcdir/B-Keywords-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
		INSTALLDIRS=vendor \
		NO_PACKLIST=1 \
		NO_PERLLOCAL=1
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
f846cbc6f045a8cc7cb9f7d74a50e927ba66b7060dc0f77c096f15fdb0d8959599dc8c2024eacea9ba298eac42bbfb887f6ca8b749531d8c08962de673d21854  B-Keywords-1.27.tar.gz
"
